package edu.umn.msse.farside.bank;

import java.math.*;
/**
 * User: Moataz
 * Date: Jan 31, 2009
 * Time: 1:00:45 PM
 * Bank Account.
 */
public class BankAccount
{
    private String _accountNumber;
    private BigDecimal _balance;

    /**
     * Constructor
     * @param accountNumber Account Number
     */
    public BankAccount(String accountNumber)
    {
        _accountNumber = accountNumber;
        _balance = new BigDecimal(0.0d);
    }

    public BigDecimal GetBalance()
    {
        return _balance;
    }

    public void deposit(BigDecimal amount)
    {
        _balance = _balance.add(amount);
    }
}
